package com.yuyue.springFramework.note08.entity;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 集合属性类
 */
public class CompositeObj {
    private String name;
    private Integer salary;

    private Human human1;
    private List<String> stringList;
    private List<Human> humanList;

    private Set<String> stringSet;
    private Set<Human> humanSet;

    private Map<String, String> stringMap;
    private Map<String, Human> stringHumanMap;

    //set、get、tostring方法
    @Override
    public String toString() {
        return "CompositeObj{" +
                "name='" + name + '\'' +
                ", salary=" + salary +
                ", human1=" + human1 +
                ", stringList=" + stringList +
                ", humanList=" + humanList +
                ", stringSet=" + stringSet +
                ", humanSet=" + humanSet +
                ", stringMap=" + stringMap +
                ", stringHumanMap=" + stringHumanMap +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    public Human getHuman1() {
        return human1;
    }

    public void setHuman1(Human human1) {
        this.human1 = human1;
    }

    public List<String> getStringList() {
        return stringList;
    }

    public void setStringList(List<String> stringList) {
        this.stringList = stringList;
    }

    public List<Human> getHumanList() {
        return humanList;
    }

    public void setHumanList(List<Human> humanList) {
        this.humanList = humanList;
    }

    public Set<String> getStringSet() {
        return stringSet;
    }

    public void setStringSet(Set<String> stringSet) {
        this.stringSet = stringSet;
    }

    public Set<Human> getHumanSet() {
        return humanSet;
    }

    public void setHumanSet(Set<Human> humanSet) {
        this.humanSet = humanSet;
    }

    public Map<String, String> getStringMap() {
        return stringMap;
    }

    public void setStringMap(Map<String, String> stringMap) {
        this.stringMap = stringMap;
    }

    public Map<String, Human> getStringHumanMap() {
        return stringHumanMap;
    }

    public void setStringHumanMap(Map<String, Human> stringHumanMap) {
        this.stringHumanMap = stringHumanMap;
    }
}
